﻿@using SanalMagaza.Model.Extentions
@model SanalMagaza.Model.ViewModel.HomeVm
@*<div id="tagline">
    <img src="/Content/Theme1/images/tagline-01.png" />
    <img src="/Content/Theme1/images/tagline-02.png" />
    <img src="/Content/Theme1/images/tagline-03.png" />
    <img src="/Content/Theme1/images/tagline-04.png" />
</div>*@
<div id="products">
    <article class="group">
        <h3>Vitrin ÜRÜNLER</h3>
        @foreach (var item in Model.ShowCaseProductList)
        {
            <p class="product">
                @item.Title
                <img width="110px" src="@Model.ShowCaseProductList.GetDefaultImage(item.Id)" />
                <span class="price">@item.Price</span>
                <a href="@Url.Action("Detail", "Product", new { id = item.Seo })" class="incele">İncele</a>
                <span class="corner"></span>
            </p>
        }
                </article>
    <article class="group">
        <h3>TÜM ÜRÜNLER</h3>
           @foreach (var item in Model.Products)
           {
       <p class="product">
                @item.Title
                <img width="110px" src="@Model.Products.GetDefaultImage(item.Id)" />
                <span class="price">@item.Price</span>
                <a href="@Url.Action("Detail", "Product", new { id = item.Seo })" class="incele">İncele</a>
                <span class="corner"></span>
            </p>
           }
                    
             
                </article>
    @*<div class="pagination">
        <span>Sayfa 1/438</span> <span class="current">1</span> <a href="#2">2</a> <a href="#3">
            3</a> <a href="#2">Sonraki &raquo;</a> <a href="#150">150</a> <a href="#300">300</a>
        <a href="#438">Son Sayfa &raquo;</a>
    </div>*@
</div>
